export class AStarNode {
    x: number;
    y: number;
    g: number; // 从起点到当前节点的成本
    h: number; // 从当前节点到终点的启发式估计成本
    f: number; // g + h
    parent: AStarNode | null;
    
    constructor(x: number, y: number) {
        this.x = x;
        this.y = y;
        this.g = 0;
        this.h = 0;
        this.f = 0;
        this.parent = null;
    }
}

